<?php
//选择课业
    $select_assign_options=array(
        'css zen garden' => 'css zen garden'
    );
//选择班级
    $select_class_options=array(
        '0722212' => '0722212',
        '0722211' => '0722211'
    );
//提交按钮
    $submit=array(
        'type'=>'submit',
        'class'=>'submit',
        'value'=>'搜索'
    )
?>
<head>
    <?php $this->load->view('load_view'); ?>
</head>
<?php
$list=array(	array(
    '1',
    'The Zen of CSS Design',
    'Mr.A',
    '0',
    'M',
    'false'
    ),
    array(
    '1',
    'javascript',
    'Mr.B',
    '1',
    'D',
    'true'
    ),
    array(
    '0',
    'XHTML',
    'Mr.C',
    '1',
    'P',
    'true'
    ),
    array(
    '1',
    'The Zen of CSS Design',
    'Mr.A',
    '1',
    'M',
    'true'
    ),
    array(
    '0',
    'javascript',
    'Mr.B',
    '0',
    'D',
    'false'
    ),
    array(
    '0',
    'XHTML',
    'Mr.C',
    '1',
    'R',
    'true'
    ),
    array(
    '0',
    'The Zen of CSS Design',
    'Mr.A',
    '1',
    'M',
    'true'
    )
);
?>
<div class="col-wrap handin-wrap">
    <div class="wrap-title">
        <p class="page-title">过期课业</p>
    </div>
    <p class="desc bg">
        页面提示：这里显示了本学期某次过期课业的信息
    </p>
    <div class="itemtitle">
        <h3>操作类型</h3>
        <ul class="selectNav">
            <li><a href="<?php echo site_url('c_teacher/unexpired');?>" id="editassign"><span>未过期课业</span></a></li>
            <li><a href="<?php echo site_url('c_teacher/expired');?>" id="addassign"><span>过期课业</span></a></li>
            <li><a href="<?php echo site_url('c_teacher/lookall');?>"><span>查看课程</span></a></li>
        </ul>
        <div class="clear"></div>
    </div>
    <!--start activate-wrap-->
    <!--start activate-wrap-->
    <div class="list activate-wrap">
        <div class="search">
            <?php echo form_open(); ?>
                <?php echo form_label('选择课业:'); ?>
                <?php echo form_dropdown('selectassign',$select_assign_options); ?>
                <?php echo form_label('选择班级:'); ?>
                <?php echo form_dropdown('selectclass',$select_class_options); ?>
                <?php echo form_input($submit); ?>
            <?php echo form_close();?>
        </div>
        <form>
            <table cellpadding="1" class="sortTable" id="sortTable">
                <thead>
                    <tr>
                        <th><p>下载</p></th>
                        <th><p>姓名</p></th>
                        <th><p>本次作业成绩</p></th>
                        <th><p>是否更新作业</p></th>
                        <th><p>是否有留言</p></th>
                    </tr>
                </thead>
                <tbody>

                    <?php
                    if(isset($_GET['year'])&&$_GET['year']=='2007') {
                        $k=$list1;
                    }elseif(isset($_GET['class'])&&$_GET['class']=='java') {
                        $k=$list2;
                    }else {
                        $k=$list;
                    }
                    for($i=0;$i<count($k);$i++) {
                        ?>
                    <tr class="toggle">
                        <td><input class="checkbox" type="checkbox" new="<?php echo $k[$i][5]?>" value="<?php echo $i; ?>" /></td>
                        <td><a href="index.php?page=handin"><?php echo $k[$i][2]; ?></a></td>
                        <td class="score"><?php echo $k[$i][4]; ?></td>
                        <td><?php
                                if($k[$i][3]==1) {
                                    echo '<font color="red">是</font>';
                                }else {
                                    echo '否';
                                }
                                
                                ?></td>
                        <td><?php echo $k[$i][0]; ?></td>
                    </tr>
                    <?php
                    }
                    ?>
                </tbody>
            </table>
            <p class="control">
                <a id="selectAll" href="javascript:">全选</a>
                <a id="selectNew" href="javascript:">选择更新</a>
                <a id="selectNone" href="javascript:">不选</a>
                <input type="submit" class="submit" value="下载" />
            </p>

        </form>
    </div>
    <!--end activate-wrap-->
</div>
<!--end col-->
</div>
<!--end col-wrap-->
<script>
    $('ul.selectNav li').eq(1).addClass('current');
    $(window.parent.document).find("ul.nav li a").removeClass("then");
    $(window.parent.document).find("a#lookup").attr("class","then");
</script>